<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require_once 'Zend/Loader/Autoloader.php';
// register autoload
$loader = Zend_Loader_Autoloader::getInstance();
$loader->registerNamespace('Wufoo_');

$view = new Zend_View();
$form = new Wufoo_Form(array(
        'wufooApiKey' => '7DGZ-5MUZ-3RSB-4SEI',
        'wufooUsername' => 'eyeflow',
        'wufooForm' => 'ocean-point-resort-contact-us'));

$form->setView($view)->setAction($_SERVER['PHP_SELF']);
$form->addElement('submit', 'sbmt', array('label' => 'Submit'));

if (!empty($_POST)) {
    // Form was submitted
    if ($form->isValid($_POST)) {
        // Send the form to wufoo
        $form->submitWufoo();
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Conforming XHTML 1.1 Template</title>
</head>
<body>
    <?php echo $form ?>
</body>
</html>
